iT邦幫忙

2024 iThome 鐵人賽

DAY 10
0
Software Development

數位醫療與雲原生第一次的親密接觸系列 第 10

Day 10 [數位醫療] docker-compose建立PACS系統

  • 分享至 

  • xImage
  •  

今天要來介紹如何使用docker-compose建立PACS系統,這次的範例是以Dcm4chee來建立PACS。

Dcm4chee是使用Java開發的開源專案,目前最新版已經到5.32.0了,搭配其他組件後能作為PACS系統使用。

使用docker-compose建立PACS系統測試站需要先到Github拉取docker-compose.yml

到以下網址下載docker-compose.yml
https://github.com/dcm4che-dockerfiles/dcm4chee-arc-psql/blob/master/docker-compose.yml

version: "3"
services:
  ldap:
    image: dcm4che/slapd-dcm4chee:2.6.6-33.0
    ports:
      - "389:389"
      - "636:636"
    environment:
      ARCHIVE_HOST: gunter-nb
      STORAGE_DIR: /storage/fs1
    volumes:
      - /var/local/dcm4chee-arc/ldap:/var/lib/openldap/openldap-data
      - /var/local/dcm4chee-arc/slapd.d:/etc/openldap/slapd.d
  db:
    image: dcm4che/postgres-dcm4chee:16.3-33
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: pacsdb
      POSTGRES_USER: pacs
      POSTGRES_PASSWORD: pacs
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /var/local/dcm4chee-arc/db:/var/lib/postgresql/data
  arc:
    image: dcm4che/dcm4chee-arc-psql:5.33.0
    ports:
      - "8080:8080"
      - "8443:8443"
      - "9990:9990"
      - "9993:9993"
      - "8787:8787"
      - "11112:11112"
      - "2762:2762"
      - "2575:2575"
      - "12575:12575"
    environment:
      WILDFLY_ADMIN_USER: admin
      WILDFLY_ADMIN_PASSWORD: admin
      WILDFLY_DEPLOY_UI: "false"
      WILDFLY_PACSDS_USE_CCM: "false"
      POSTGRES_DB: pacsdb
      POSTGRES_USER: pacs
      POSTGRES_PASSWORD: pacs
      WILDFLY_CHOWN: /storage
      WILDFLY_WAIT_FOR: ldap:389 db:5432
      JAVA_OPTS: -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=n
    depends_on:
      - ldap
      - db
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /var/local/dcm4chee-arc/wildfly:/opt/wildfly/standalone
      - /var/local/dcm4chee-arc/storage:/storage
  ui:
    image: dcm4che/dcm4chee-arc-psql:5.33.0
    ports:
      - "18080:18080"
      - "18443:18443"
      - "19990:19990"
      - "19993:19993"
      - "8888:8888"
    environment:
      WILDFLY_ADMIN_USER: admin
      WILDFLY_ADMIN_PASSWORD: admin
      WILDFLY_DEPLOY_UI: only
      WILDFLY_PACSDS_USE_CCM: "false"
      DCM4CHEE_ARC_URLS: http://gunter-nb:8080/dcm4chee-arc
      HTTP_PORT: 18080
      HTTPS_PORT: 18443
      MANAGEMENT_HTTP_PORT: 19990
      MANAGEMENT_HTTPS_PORT: 19993
      WILDFLY_WAIT_FOR: arc:8080
      JAVA_OPTS: -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:8888,server=y,suspend=n
    depends_on:
      - arc
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /var/local/dcm4chee-arc/ui:/opt/wildfly/standalone

下載好後將服務啟起來

docker-compose up

如果執行過程中沒報錯,輸入以下網址後會看到
http://127.0.0.1:18080/dcm4chee-arc/ui2/en/

https://ithelp.ithome.com.tw/upload/images/20240918/20161987UGZWTMp44o.png

出現這個畫面後就代表服務啟動成功啦,這時就可以做一些簡單的測試!!!


上一篇
Day 9 [數位醫療] 醫療影像存儲管理系統-PACS
下一篇
Day 11 [數位醫療] Dicom介紹
系列文
數位醫療與雲原生第一次的親密接觸30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言